#! python3
# countdown.py - A simple countdown script.
import os, time, subprocess

timeLeft = 60
while timeLeft > 0:
    print(timeLeft, end='')
    time.sleep(1)
    timeLeft = timeLeft - 1

# At the end of the countdown, play a sound file.
file_path = os.path.join(os.getcwd(), 'materials', 'voice', 'alarm.wav')
subprocess.Popen(['start', file_path], shell=True)
